<?php
session_start();
require_once("includes/header.php");
?>

<?php

if (!empty($_SESSION['username'])) {
    echo "Welcome!   ";
    echo $_SESSION['username'];
    require("myFitness_content.php");
} else {
    echo "You need to log in. Now redirect to Login Page...";
    echo "<script language=\"JavaScript\">
window.setTimeout(\"location='login.php'\", 1500);
</script>";
}
?>

<?php
require_once("includes/footer.php");
?>

